package dialect

import (
	"gitee.com/go-web-2/orm_framework/predicate"
	"gitee.com/go-web-2/orm_framework/session/model"
)

type Dialect interface {
	Quote() string
	BuildUpdate(updater *Updater, model *model.Model) (*UpdateStat, error)
}

type Updater struct {
	ConflictColumns []predicate.Column
	Assignments     []predicate.Assignable
}

type UpdateStat struct {
	SQL  string
	Args []interface{}
}
